import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  server: {
    proxy: {
      '/ifc': 'http://127.0.0.1:8080',
      '/lidarData': 'http://127.0.0.1:8080'
    }
  },
  resolve: {
    alias: {
      'src': resolve(__dirname, 'src'),
      'com': resolve(__dirname, 'src/components'),
      'views': resolve(__dirname, 'src/views'),
      'less': resolve(__dirname, 'src/assets/less')
    }
  },
  css: {
    postcss: {
      plugins: [
        require('tailwindcss'),
        require('autoprefixer')
      ]
    }
  }
})
